<template>
  <div class="wrapper">
    <div class="img"><img :src="anchorItem.picUrl" alt="" /></div>
    <div class="info">
      <div class="info_name">{{ anchorItem.name}}</div>
      <div class="info_explain">{{ anchorItem.rcmdtext }}</div>
      <div class="info_num_box">
        <div class="pro_count">节目:{{ anchorItem.programCount }},</div>
        <div class="sub_count">订阅:{{ anchorItem.subCount }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "AnchorItem",
  props: {
    anchorItem: {
      type: Object,
      default: () => {},
    },
  },
};
</script>

<style lang="less" scoped>
.wrapper {
  display: flex;
  align-items: center;
  .img {
    width: 170px;
    height: 170px;
    background: antiquewhite;
    cursor: pointer;
    img {
      width: 170px;
    }
  }
  .info {
    margin-left: 10px;
    .info_name {
      margin-bottom: 25px;
      cursor: pointer;
      font-size: 20px;
    }
    .info_explain,
    .info_num_box {
      color: #999;
      cursor: default;
    }
    .info_num_box {
      margin-top: 5px;
      display: flex;
      .pro_count {
        margin-right: 10px;
      }
    }
  }
}
</style>